from django.urls import path
from apps.invite.views import RecommendListAPIView, RecruitsSearchView, HotEnterpriseAPIView
from apps.invite.views import RecruitsDetailVisitView, HotCityView, HotCityKeywordView, RecruitsDetailView
from apps.invite.views import RecruitsCollectView, CancelCollectAPIView
from apps.invite.views import EnterpriseListAPIView, EnterpriseVisitAPIView,EnterpriseCollectAPIView,EnterpriseCancelCollectView


urlpatterns = [

    # 推荐职位
    path('recruits/search/recommend/', RecommendListAPIView.as_view()),

    # 最新职位
    path('recruits/search/latest/', RecruitsSearchView.as_view()),

    # 热门公司
    path('enterprise/search/hotlist/', HotEnterpriseAPIView.as_view()),

    # 热门城市
    path('city/hotlist/', HotCityView.as_view()),

    # 城市搜索
    path('recruits/search/city/keyword/', HotCityKeywordView.as_view()),

    # 职位详情
    path('recruits/<id>/', RecruitsDetailView.as_view()),

    # 职位浏览
    path('recruits/<id>/visit/', RecruitsDetailVisitView.as_view()),

    # 收藏职位
    path('recruits/<id>/collect/', RecruitsCollectView.as_view()),

    # 取消收藏职位
    path('recruits/<id>/cancelcollect/', CancelCollectAPIView.as_view()),

    # 公司浏览
    path('enterprise/<id>/visit/', EnterpriseVisitAPIView.as_view()),

    # 公司详情
    path('enterprise/<id>/', EnterpriseListAPIView.as_view()),

    # 公司收藏
    path('enterprise/<id>/collect/', EnterpriseCollectAPIView.as_view()),

    # 取消公司收藏
    path('enterprise/<id>/cancelcollect/', EnterpriseCancelCollectView.as_view()),

]







